Optimal. Leaf size=49 \[ 2 \sqrt{x} \sqrt{a+\frac{b}{x}}-2 \sqrt{b} \tanh ^{-1}\left (\frac{\sqrt{b}}{\sqrt{x} \sqrt{a+\frac{b}{x}}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0248701, antiderivative size = 49, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.235, Rules used = {337, 277, 217, 206} \[ 2 \sqrt{x} \sqrt{a+\frac{b}{x}}-2 \sqrt{b} \tanh ^{-1}\left (\frac{\sqrt{b}}{\sqrt{x} \sqrt{a+\frac{b}{x}}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 337
Rule 277
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \frac{\sqrt{a+\frac{b}{x}}}{\sqrt{x}} \, dx &=-\left (2 \operatorname{Subst}\left (\int \frac{\sqrt{a+b x^2}}{x^2} \, dx,x,\frac{1}{\sqrt{x}}\right )\right )\\ &=2 \sqrt{a+\frac{b}{x}} \sqrt{x}-(2 b) \operatorname{Subst}\left (\int \frac{1}{\sqrt{a+b x^2}} \, dx,x,\frac{1}{\sqrt{x}}\right )\\ &=2 \sqrt{a+\frac{b}{x}} \sqrt{x}-(2 b) \operatorname{Subst}\left (\int \frac{1}{1-b x^2} \, dx,x,\frac{1}{\sqrt{a+\frac{b}{x}} \sqrt{x}}\right )\\ &=2 \sqrt{a+\frac{b}{x}} \sqrt{x}-2 \sqrt{b} \tanh ^{-1}\left (\frac{\sqrt{b}}{\sqrt{a+\frac{b}{x}} \sqrt{x}}\right )\\ \end{align*}
Mathematica [A] time = 0.0823442, size = 78, normalized size = 1.59 \[ \frac{2 \sqrt{x} \sqrt{a+\frac{b}{x}} \left (-\sqrt{a} \sqrt{b} \sqrt{x} \sqrt{\frac{b}{a x}+1} \sinh ^{-1}\left (\frac{\sqrt{b}}{\sqrt{a} \sqrt{x}}\right )+a x+b\right )}{a x+b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.009, size = 50, normalized size = 1. \begin{align*} -2\,{\frac{\sqrt{x}}{\sqrt{ax+b}}\sqrt{{\frac{ax+b}{x}}} \left ( \sqrt{b}{\it Artanh} \left ({\frac{\sqrt{ax+b}}{\sqrt{b}}} \right ) -\sqrt{ax+b} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.52509, size = 252, normalized size = 5.14 \begin{align*} \left [\sqrt{b} \log \left (\frac{a x - 2 \, \sqrt{b} \sqrt{x} \sqrt{\frac{a x + b}{x}} + 2 \, b}{x}\right ) + 2 \, \sqrt{x} \sqrt{\frac{a x + b}{x}}, 2 \, \sqrt{-b} \arctan \left (\frac{\sqrt{-b} \sqrt{x} \sqrt{\frac{a x + b}{x}}}{b}\right ) + 2 \, \sqrt{x} \sqrt{\frac{a x + b}{x}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 3.07723, size = 68, normalized size = 1.39 \begin{align*} \frac{2 \sqrt{a} \sqrt{x}}{\sqrt{1 + \frac{b}{a x}}} - 2 \sqrt{b} \operatorname{asinh}{\left (\frac{\sqrt{b}}{\sqrt{a} \sqrt{x}} \right )} + \frac{2 b}{\sqrt{a} \sqrt{x} \sqrt{1 + \frac{b}{a x}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.29985, size = 84, normalized size = 1.71 \begin{align*} 2 \,{\left (\frac{b \arctan \left (\frac{\sqrt{a x + b}}{\sqrt{-b}}\right )}{\sqrt{-b}} + \sqrt{a x + b} - \frac{b \arctan \left (\frac{\sqrt{b}}{\sqrt{-b}}\right ) + \sqrt{-b} \sqrt{b}}{\sqrt{-b}}\right )} \mathrm{sgn}\left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]